// Worker 线程
self.onmessage = function (e) {
  let num = e.data
  let result = 1
  console.log('worker4 onmessage', num)
  for (let i = 1; i < num; i++) {
    result *= i
  }
  postMessage(result);
}

self.onerror = function (e) {
  console.log('worker4 onerror', e)
}
